package com.example.springboot0910.config;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Configuration
//@PropertySource("classpath:jdbcConfig.properties")
@ConfigurationProperties(prefix = "jdbc")
public class JdbcProperties {
//    @Value("${jdbc.url}")
    private String url;

//    @Value("${jdbc.driver}")
    private String driverClassName;

//    @Value("${jdbc.username}")
    private String username;

//    @Value("${jdbc.password}")
    private String password;
}
